/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Ventanas;

import java.awt.List;
import javax.swing.JTable;
import javax.swing.table.TableColumn;

/**
 *
 * @author USUARIO
 */
public class panPedidos extends javax.swing.JPanel {

    /**
     * Creates new form panPedidos
     */
    public panPedidos() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        panContainer = new javax.swing.JPanel();
        lblTitulo = new javax.swing.JLabel();
        panMenu = new javax.swing.JPanel();
        btnNuevo = new javax.swing.JButton();
        btnPendientes = new javax.swing.JButton();
        btnHistorial = new javax.swing.JButton();
        panTrabajo = new javax.swing.JPanel();

        setBackground(new java.awt.Color(248, 252, 202));

        panContainer.setBackground(new java.awt.Color(246, 76, 131));
        panContainer.setLayout(new javax.swing.BoxLayout(panContainer, javax.swing.BoxLayout.LINE_AXIS));

        lblTitulo.setFont(new java.awt.Font("Corbel", 3, 18)); // NOI18N
        lblTitulo.setForeground(new java.awt.Color(255, 255, 255));
        lblTitulo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/cream_pink.png"))); // NOI18N
        lblTitulo.setText("Pedidos");
        lblTitulo.setIconTextGap(8);
        panContainer.add(lblTitulo);

        panMenu.setBackground(new java.awt.Color(248, 246, 198));
        panMenu.setLayout(new java.awt.GridLayout(0, 1));

        btnNuevo.setBackground(new java.awt.Color(51, 188, 233));
        btnNuevo.setFont(new java.awt.Font("Corbel", 1, 12)); // NOI18N
        btnNuevo.setForeground(new java.awt.Color(248, 252, 202));
        btnNuevo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/cream_pink.png"))); // NOI18N
        btnNuevo.setText("Nuevo");
        btnNuevo.setBorder(null);
        btnNuevo.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btnNuevoMouseClicked(evt);
            }
        });
        panMenu.add(btnNuevo);

        btnPendientes.setBackground(new java.awt.Color(212, 221, 112));
        btnPendientes.setFont(new java.awt.Font("Corbel", 1, 12)); // NOI18N
        btnPendientes.setForeground(new java.awt.Color(248, 252, 202));
        btnPendientes.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/cream_pink.png"))); // NOI18N
        btnPendientes.setText("Pendientes");
        btnPendientes.setBorder(null);
        btnPendientes.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btnPendientesMouseClicked(evt);
            }
        });
        panMenu.add(btnPendientes);

        btnHistorial.setBackground(new java.awt.Color(255, 102, 102));
        btnHistorial.setFont(new java.awt.Font("Corbel", 1, 12)); // NOI18N
        btnHistorial.setForeground(new java.awt.Color(248, 252, 202));
        btnHistorial.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/cream_pink.png"))); // NOI18N
        btnHistorial.setText("Historial");
        btnHistorial.setBorder(null);
        btnHistorial.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btnHistorialMouseClicked(evt);
            }
        });
        panMenu.add(btnHistorial);

        panTrabajo.setBackground(new java.awt.Color(248, 252, 202));
        panTrabajo.setLayout(new javax.swing.BoxLayout(panTrabajo, javax.swing.BoxLayout.LINE_AXIS));

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(panContainer, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(layout.createSequentialGroup()
                .addComponent(panMenu, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(panTrabajo, javax.swing.GroupLayout.DEFAULT_SIZE, 402, Short.MAX_VALUE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(panContainer, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(panMenu, javax.swing.GroupLayout.DEFAULT_SIZE, 315, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(panTrabajo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addContainerGap())))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void btnNuevoMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnNuevoMouseClicked
        // TODO add your handling code here:
        panTrabajo.removeAll();
        panTrabajo.add(new panNuevoPedido());
        panTrabajo.updateUI();
    }//GEN-LAST:event_btnNuevoMouseClicked

    private void btnPendientesMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnPendientesMouseClicked
        // TODO add your handling code here:
        panTrabajo.removeAll();
        List listapendientes = new List();
        listapendientes.add("Pedido 124");
        listapendientes.add("Pedido 220");
        panTrabajo.add(listapendientes);
        panTrabajo.updateUI();
    }//GEN-LAST:event_btnPendientesMouseClicked

    private void btnHistorialMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnHistorialMouseClicked
        // TODO add your handling code here:
       panTrabajo.removeAll();
    }//GEN-LAST:event_btnHistorialMouseClicked

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnHistorial;
    private javax.swing.JButton btnNuevo;
    private javax.swing.JButton btnPendientes;
    private javax.swing.JLabel lblTitulo;
    private javax.swing.JPanel panContainer;
    private javax.swing.JPanel panMenu;
    private javax.swing.JPanel panTrabajo;
    // End of variables declaration//GEN-END:variables
}
